package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.Mp3record;
import com.ruoyi.system.domain.Mp3recordExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface Mp3recordMapper {
    long countByExample(Mp3recordExample example);

    int deleteByExample(Mp3recordExample example);

    /**
     * delete by primary key
     *
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id);

    /**
     * insert record to table
     *
     * @param record the record
     * @return insert count
     */
    int insert(Mp3record record);

    int insertOrUpdate(Mp3record record);

    int insertOrUpdateSelective(Mp3record record);

    /**
     * insert record to table selective
     *
     * @param record the record
     * @return insert count
     */
    int insertSelective(Mp3record record);

    List<Mp3record> selectByExample(Mp3recordExample example);

    /**
     * select by primary key
     *
     * @param id primary key
     * @return object by primary key
     */
    Mp3record selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Mp3record record, @Param("example") Mp3recordExample example);

    int updateByExample(@Param("record") Mp3record record, @Param("example") Mp3recordExample example);

    /**
     * update record selective
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(Mp3record record);

    /**
     * update record
     *
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(Mp3record record);

    int updateBatch(List<Mp3record> list);

    int updateBatchSelective(List<Mp3record> list);

    int batchInsert(@Param("list") List<Mp3record> list);
}